<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<%@include file="/commons/commonList.jsp" %>

<script type="text/javascript">

	function init(){
		var frameObj = parent.window.document.all('customerTaskList');
		if( frameObj == null){//如果为空 则判断是客服事件详细使用
			frameObj = parent.window.document.all('signReadingFrame');
			document.getElementById("divId").style.height = "280px"
		}
		frameObj.height=document.getElementById("divId").scrollHeight+10;
	}
	function setCurrentId(id,eventId){

	parent.setCurrentTaskId(id,eventId);
	}

	function refleshFrame(){
	parent.refleshFrame();
	}

	function rightMenu(event){

	if('${MenuFlat}'=='false'){
	return false;
	}

	return ShowContextMenu(event,'quick_rightmenu');
	}

</script>
</head>
<body onload="init();">
<div style="height:310px;overflow:auto;" id="divId">
	<ec:ceTable items="submitTaskList"
			autoIncludeParameters="true"
			var="submitTaskItem"
			action="${ctx}/customerService_deptCooperationAction.do?method=queryTaskByPage"
			rowsDisplayed="${pageSize}"
			width="100%"
			view="pmsview"
			styleClass="gridData"
			>
			<ec:ceRow styleClass="grid" onclick="setCurrentId('${submitTaskItem.keyword}','${submitTaskItem.custServiceEventId}');" ondblclick="parent.openTaskDetail();return false" onContextMenu="return rightMenu(event);">
				<ec:ceColumn headerCell="pmsHeadrCell" width="14%" property="eventNo" title="事件编号" ></ec:ceColumn>
				<ec:ceColumn headerCell="pmsHeadrCell" width="7%" property="houseNumber" title="房号" ></ec:ceColumn>
				<ec:ceColumn headerCell="pmsHeadrCell" width="8%" property="fullAddress" title="详细地点" ></ec:ceColumn>
				<ec:ceColumn headerCell="pmsHeadrCell" width="9%" property="custServEventNatureName" title="事件性质"></ec:ceColumn>
				<ec:ceColumn headerCell="pmsHeadrCell" width="9%" property="emergencyDegreeName" title="紧急程度"></ec:ceColumn>
				<ec:ceColumn headerCell="pmsHeadrCell" width="20%" property="eventContent" title="事件内容"></ec:ceColumn>
				<ec:ceColumn headerCell="pmsHeadrCell" width="7%" property="frequency" title="催单次数" sortable="true"></ec:ceColumn>
				<ec:ceColumn headerCell="pmsHeadrCell" width="9%" property="statuName" title="状态"></ec:ceColumn>
				<ec:ceColumn headerCell="pmsHeadrCell" width="9%" property="deptName" title="责任部门"></ec:ceColumn>
			  <ec:ceColumn headerCell="pmsHeadrCell" width="7%" property="validity" title="是否有效">
			  <c:if test="${submitTaskItem.validity=='1'}">有效</c:if>
			  <c:if test="${submitTaskItem.validity=='0'}">无效</c:if>
			  </ec:ceColumn>
			   <ec:parameter name="customerEventId" value="${customerEventId}"></ec:parameter>
			 <ec:parameter name="MenuFlat" value="${MenuFlat}"></ec:parameter>
			 <ec:parameter name="mainFlat" value="${mainFlat}"></ec:parameter>
			</ec:ceRow>
	</ec:ceTable>
</div>
<!--------------------右键菜单---------------------->
<div id="quick_rightmenu" style="display:none;" oncontextmenu="return false" class="quick_rightmenu">
  <table width="100%" border="0" cellpadding="1" cellspacing="0" class="grid_quickMenu_bg">
    <tr>
      <td><table width="100%" border="0" cellpadding="2" cellspacing="0">
         <pms:AuthTag authName="customerService_deptCooperationAction.do?method=revokeTask">
	     <tr>
          <td class="quickMenu_toolbarico">
          	<a href="#" onClick="parent.openBackTask();return false;" onFocus="this.blur()"><img src="${ctx}/images/ico_backup.gif" alt="任务撤回" border="0" align="absbottom"/>&nbsp;任务撤回</a></td>
        </tr>
        </pms:AuthTag>
        <pms:AuthTag authName="customerService_deptCooperationAction.do?method=addAccomplishRegisterInfo">
    	<tr>
    <td class="quickMenu_toolbarico"><a href="#"  onClick="parent.openTaskComplete();return false;" onFocus="this.blur()"><img src="${ctx}/images/ico_pass.gif" alt="任务完工" width="15" height="16" border="0" align="absbottom"/> 任务完工</a></td>
  		</tr>
  		</pms:AuthTag>
  		<pms:AuthTag authName="customerService_deptCooperationAction.do?method=hasten">
    	<tr>
    <td class="quickMenu_toolbarico"><a href="#"  onClick="parent.openTaskHasten();return false;" onFocus="this.blur()"><img src="${ctx}/images/ico_mymessage.gif" alt=" 催 单" width="15" height="16" border="0" align="absbottom"/> 催 单</a></td>
  		</tr>
  		</pms:AuthTag>
  		<pms:AuthTag authName="customerService_deptCooperationAction.do?method=addProcessingOpinion">
        <tr>
  		<td class="quickMenu_toolbarico"><a href="#"  onclick="parent.addProcessingOpinion();return false;"onfocus="this.blur()"><img src="${ctx}/images/ico_custome_household2.gif" alt="处理意见" height="16" border="0" align="absbottom" />&nbsp;处理意见</a></td>
        </tr>
        </pms:AuthTag>
        <pms:AuthTag authName="customerService_deptCooperationAction.do?method=addTaskFeedbackInfo">
		<tr>
         <td class="quickMenu_toolbarico"><a href="#"  onclick="parent.addTaskFeedbackInfo();return false;"onfocus="this.blur()"><img src="${ctx}/images/ico_huifang.gif" alt="反馈信息" height="16" border="0" align="absbottom" />&nbsp;反馈信息</a></td>
        </tr>
        </pms:AuthTag>
        <pms:AuthTag authName="customerService_custServEventAction.do?method=initLinkTheOtherListMain">
        <tr>
        <td class="quickMenu_toolbarico"><a href="#"  onclick="parent.openLinkTheOther();return false;"onfocus="this.blur()"><img src="${ctx}/images/ico_yhhk_gh.gif" alt="关联事件" width="16" height="16" border="0" align="absbottom"/>&nbsp;关联事件</a></td>
        </tr>
        </pms:AuthTag>
      </table></td>
    </tr>
  </table>
 <script type="text/javascript">

	var div1=document.getElementById('quick_rightmenu');
	if(div1.getElementsByTagName("tr").length==1){
	div1.innerHTML="";
	}


</script>
</div>
</body>
</html>